package com.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

/**
 * Created by LiWeijie
 * 19/03/04 13:35
 */
@WebService
public interface Webservice {
    @WebMethod(operationName = "GetSchema", action = "http://restful.goocan.com/GetSchema")
    @WebResult(name = "GetSchemaResult", targetNamespace = "")
    public String GetSchema(@WebParam(name = "schemaCode") String schemaCode);

    @WebMethod(operationName = "GetSchemaList", action = "http://restful.goocan.com/GetSchemaList")
    @WebResult(name = "GetSchemaListResult", targetNamespace = "")
    public String GetSchemaList();

    @WebMethod(operationName = "GetList", action = "http://restful.goocan.com/GetList")
    @WebResult(name = "GetListResult", targetNamespace = "")
    public String GetList(@WebParam(name = "userId ") String userId,
                          @WebParam(name = "schemaCode") String schemaCode,
                          @WebParam(name = "filter") String filter);

    @WebMethod(operationName = "Invoke", action = "http://restful.goocan.com/Invoke")
    @WebResult(name = "InvokeResult", targetNamespace = "")
    public String Invoke(@WebParam(name = "userCode") String userCode,
                         @WebParam(name = "schemaCode") String schemaCode,
                         @WebParam(name = "methodName") String methodName,
                         @WebParam(name = "param") String param);
}
